package cn.tedu.tmall.basic.dao.repository.impl;

import cn.tedu.tmall.basic.dao.repository.IDistrictCacheRepository;
import cn.tedu.tmall.basic.dao.repository.ILockCacheRepository;
import cn.tedu.tmall.basic.pojo.po.DistrictPO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.ListOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.SetOperations;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * 处理省市区数据的缓存访问实现类
 *
 * @author java@tedu.cn
 * @version 3.0
 **/
@Slf4j
@Repository
public class LockCacheRepositoryImpl implements ILockCacheRepository {

    // jedis
    @Autowired
    private RedisTemplate<String, Serializable> redisTemplate;


    @Override
    public Boolean lock() {
        //redisTemplate
        return true;
    }

    @Override
    public void unlock() {

    }
}
